﻿using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ys.Base.Common.Identity
{
    /// <summary>
    /// jwt身份认证发行者实体属性
    /// </summary>
    public class JwtTokenProviderOptions
    {
        /// <summary>
        /// 发行者
        /// </summary>
        public string? Issuer { get; set; }
        /// <summary>
        /// 订阅者
        /// </summary>
        public string? Audience { get; set; }
        /// <summary>
        /// 过期的时间间隔
        /// </summary>
        public TimeSpan Expiration { get; set; } = TimeSpan.FromDays(1);

        /// <summary>
        /// 私钥密钥
        /// </summary>
        public string? Secretkey { get; set; }

        /// <summary>
        /// 签名证书
        /// </summary>
        public SigningCredentials? SigningCredentials { get; set; }
    }
}
